package felix.things.router.mqtt.server.broker.internal;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 内部消息
 *
 * @author Felix
 * @date 2019/8/21
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class InternalMessage implements Serializable {

    private static final long serialVersionUID = 3631755468947273083L;

    private String brokerId;

    private String processId;

    //当前频道clientId
    private String clientId;

    private String topic;

    private int mqttQoS;

//    private byte[] messageBytes;

    private String messageBase64;

    private boolean retain;

    private boolean dup;
}
